import request from '@/utils/request'

enum API {
  GetToken = '/api/user/token',
  GetUserList = '/api/user',
  DelteUser = '/api/user'
}

export function GetTokenApi(data: LoginParams) {
  return request.post(API.GetToken, data)
}

export function GetUserListApi() {
  return request.get(API.GetUserList)
}

export function DelteUserApi(id: number) {
  return request.delete(`${API.DelteUser}/${id}`)
}
